<?php
echo $erreur;
?>
<div id="wrapper-content" style="width: 600px;">
    <table class="titrepage" width="100%">
        <tr>
            <td >La liste des membres</td>
            <td align="right">Total | <?php echo $total ?> </td>
        </tr>
    </table>
    <table align="center" width="100%" class="list">
        <thead>
            <tr>
                <th>Image</th>
               <th>Nom d'affichage</th>
                <th>Race</th>
                <th>Région</th>
                <th colspan="2">Action</th>
            </tr>
        </thead>
        <?php foreach ($query as $aRow): ?>
        <?php
                $image_path = './doggy_avatar/images/' . $aRow['avatar'];
                if ($aRow['avatar'] != '') {
                    if (file_exists($image_path)) {
                        $image_path = base_url() . 'doggy_avatar/images/' . $aRow['avatar'];
                    } else {
                        $image_path = base_url() . 'assets/noimage.gif';
                    }
                } else {
                    $image_path = base_url() . 'assets/noimage.gif';
                }
        ?>
                <tr>
                    <td><img src="<?php echo $image_path;?>" height="60"/></td>
                   <td><?php echo $aRow['display_name']; ?></td>
                    <td><?php echo $aRow['race_name']; ?></td>
                    <td><?php echo $aRow['name']; ?></td>
                    <td width="70px">
                        <a class="supprimer" href="#" ><img border="0"src="<?php echo root_url('doggy-flirt') . 'assets/admin/' ?>images/supprimer.png"/></a>
                        <div style="display:none">
                    		    	Confirmer <br/>
                            <a href="<?php echo site_url('doggy_admin/delete_member') . '/' . $aRow['id'] . '/' . $per_page . '/' . $off_set; ?>"> <img border="0"src="<?php echo root_url('doggy-flirt') . 'assets/admin/' ?>images/oui.png"/></a>
                    <a class="non" href="#" ><img  border="0"src="<?php echo root_url('doggy-flirt') . 'assets/admin/' ?>images/non.png"/></a>
                </div>

            </td>
        </tr>
        <?php endforeach; ?>
            </table>
    <?php echo $pagination; ?>
</div>
<!--END wrapper-content-->
